<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%
    String contextPath = request.getContextPath();
    User user = (User) request.getAttribute("user");
    %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="com.zhangyj.entitis.User"%>
<%@page import="com.zhangyj.component.ToolBar"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<%@include file="/WEB-INF/jsps/head.jsp"%>
</head>
<body>
<%
	ToolBar toolbar = new ToolBar();
	toolbar.setTitle("员工编辑");
	toolbar.put(new ToolBar.Item("返回", "_setLocation('"+contextPath+"/user/list.do')"));
	toolbar.writer(out);
%>
<form action="<%=contextPath %>/user/save.do">
<input type="hidden" name="model" value="new"/>
<input type="hidden" name="userid" value="<%=user.getId() %>"/>
<%
com.zhangyj.entitis.SystemParam systemParam = com.zhangyj.entitis.SystemParam.getSystemParam(request);
out.print(systemParam.toInput());
%>
<table>
	<tr>
		<td>编号</td>
		<td><input name="code" value="<%=user.getCode() %>"/></td>
	</tr>
	<tr>
		<td>用户名</td>
		<td><input name="username" value="<%=user.getNickName() %>"/></td>
	</tr>
	
	<tr>
		<td>登录名</td>
		<td><input name="loginname" value="<%=user.getLgnName() %>"/></td>
	</tr>
	<tr>
		<td>密码</td>
		<td><input type="password"name="psword" value=""/></td>
	</tr>
	<tr>
		<td colspan="2" style="text-align: center">
		<input type="submit">
		<input type="reset">
		</td>
	</tr>
</table>
</form>
</body>
</html>